﻿using CommonTools;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace shop.daifa
{
    public partial class AddImgBox : UserControl
    {
        //private Color _addBtnColor;

        private RefundImgPanel _panel;

        public AddImgBox(RefundImgPanel panel)
        {
            InitializeComponent();

            _panel = panel;
            //this.CanFocus = true;
            SetStyle(ControlStyles.Selectable , true);
            this.TabStop = true;
        }

        private async void btnUpload_Click(object sender, EventArgs e)
        {
            await _panel?.Upload();
        }

        private void box_address_RequestValidate(CommonTools.Controls.GuanTextBox arg1, CommonTools.Controls.FastValueArgs arg2)
        {

        }

        private void box_address_TextChanged(object sender, EventArgs e)
        {

        }

        protected override void OnMouseEnter(EventArgs e)
        {
            base.OnMouseEnter(e);
            //_addBtnColor = this.BackColor;
            //this.BackColor = Color.Gray;
        }

        protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);
            //this.BackColor = _addBtnColor;
        }

        private void AddImgBox_KeyDown(object sender, KeyEventArgs e)
        {
       
        }
    }
}
